package com.ctg.behavior.common.ltv;

import java.util.ArrayList;
import java.util.List;

import com.ctg.behavior.common.calc.CtCalcCommonBody;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = false)
@Data
public class CtLTVCalcBody extends CtCalcCommonBody {

///*
//{
//	"startSign": {
//		"startEvent": "_AppStart",
//		"filters": {
//			"conditions": [ ]
//		},
//		"cname": "App启动"
//	},
//	"measures": [
//		{
//			"aggregator": "average",
//			"eventId": "pullNew",
//			"profitRate": 100,
//			"filter": {
//				"conditions": [ ]
//			}
//		}
//	],
//	"fromDate": "2021-06-28",
//	"toDate": "2021-07-04",
//	"unit": "day",
//	"byFields": [
//		"event._Anything._lib"
//	],
//	"subTaskType": "LTV",
//	"duration": 90,
//	"openPredict": false,
//	"chartType": "trend",
//	"chartIndex": 7,
//	"filter": {
//		"conditions": [ ]
//	},
//	"requestId": "1625547406613:571020"
//}
// */
	
	private CtLTVStartSign startSign = new CtLTVStartSign();
	private List<CtLTVMeasure> measures = new ArrayList<>();
	private List<String> byFields = new ArrayList<>();
	// 全局筛选条件 ===> 移动到CtCalcCommonBody类中
	// private CtCalcFilter filter = new CtCalcFilter();
	// 
	private Long duration = 90L;
	//
	private Boolean openPredict = false;
	//
	private String chartType = "";
	//
	private Integer chartIndex = 3;


}
